package com.kcht.rfid.rd30.secretary.core.response;

import com.kcht.rfid.rd30.secretary.core.common.ReaderResponseStatus;

import java.time.LocalDateTime;

/**
 * 阅读器响应
 * */
public abstract class BasicResponse {
    /**
     * 阅读器IP
     * */
    private String ip;

    /**
     * 具体操作的天线
     * */
    private Integer antId;
    /**
     * 响应结果，成功、失败，各种状态
     * */
    private ReaderResponseStatus status;

    /**
     * 响应操作了哪个标签，其实是标签唯一标识即不会变的东西，但是,这里默认为epc
     * */
   private  String epc;
    /**
     * 标签操作完成的时间
     * */
    private LocalDateTime dateTime;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getAntId() {
        return antId;
    }

    public void setAntId(Integer antId) {
        this.antId = antId;
    }

    public ReaderResponseStatus getStatus() {
        return status;
    }

    public void setStatus(ReaderResponseStatus status) {
        this.status = status;
    }

    public String getEpc() {
        return epc;
    }

    public void setEpc(String epc) {
        this.epc = epc;
    }

    public LocalDateTime getDateTime() {
        return dateTime;
    }

    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }

    @Override
    public String toString() {
        return "BasicResponse{" +
                "ip='" + ip + '\'' +
                ", antId=" + antId +
                ", status=" + status +
                ", epc='" + epc + '\'' +
                ", dateTime=" + dateTime +
                '}';
    }


}
